package com.stu.test.mapper;

import com.stu.test.dto.PageUtilDTO;
import com.stu.test.entity.User;
import com.stu.test.vo.UserAndAddressVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName: IUserMapper
 * Package: com.stu.test.mapper
 * Description: @Version 1.0
 */
public interface IUserMapper {
//    注解的方法
//    @Select("select * from t_user where id=#{id}")
    User getUserById(int id);
    List<UserAndAddressVo> getUserAndAddress(int id);
    List<User> getUserPageData(PageUtilDTO pageUtilDTO);
    List<User> getUserList();
    List<Integer> getUserIDList();
}
